using ExpressesClass.BestApi.Base;
using ExpressesClass.BestApi.kdInspectionSubmitRsp;
using ExpressesClass.BestApi.Utils;
using System;

namespace ExpressesClass.BestApi.kdInspectionSubmitReq
{
    public class KdInspectionSubmitReq : BaseRequest
    {
		public string mailNo { get; set; }
		public string sendManName { get; set; }
		public string sendProvinceName { get; set; }
		public string sendCityName { get; set; }
		public string sendCountyName { get; set; }
		public string acceptManName { get; set; }
		public string acceptManPhone { get; set; }
		public string acceptManAddress { get; set; }
		public string acceptProvinceName { get; set; }
		public string acceptCityName { get; set; }
		public string acceptCountyName { get; set; }
       
		public override String obtainServiceType()
        {
            return "KD_INSPECTION_SUBMIT";

        }

		public override BaseResponse makeResponse(string rsp, string format)
        {
           if ("XML".Equals(format, StringComparison.InvariantCultureIgnoreCase)) {
               return XmlUtils.xmlToObj(rsp,typeof(KdInspectionSubmitRsp)) as KdInspectionSubmitRsp;
           }
           return JsonParser.jsonToObj<KdInspectionSubmitRsp>(rsp);
        }


    }
}